home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Publish / A / Alpha 5.96.sit / Tcl / SystemCode / wordCompletion.tcl < prev   
MacBinary  |  1994-09-15  |  6.3 KB  |  [TEXT/ALFA]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Sep 15 00:43:40 1994, modified Thu Sep 15 00:43:40 1994, creator Alpha editor, type ASCII, 5850 bytes "wordCompletion.tcl" , at 0x175a 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ALFA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 77 6f 72 64 43 6f | 6d 70 6c 65 74 69 6f 6e |..wordCo|mpletion|
|00000010| 2e 74 63 6c 00 00 00 00 | 00 00 00 00 00 00 00 00 |.tcl....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......|
|00000050| 00 00 00 00 00 16 da 00 | 00 01 7e aa 9d 81 7c aa |........|..~...|.|
|00000060| 9d 81 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..|.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f7 1b 00 00 |........|........|
|00000080| 23 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |#=======|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 23 20 27 |========|====.# '|
|000000d0| 57 6f 72 64 20 43 6f 6d | 70 6c 65 74 69 6f 6e 27 |Word Com|pletion'|
|000000e0| 2c 20 69 6e 20 74 68 65 | 20 73 70 69 72 69 74 20 |, in the| spirit |
|000000f0| 6f 66 20 50 61 75 6c 20 | 76 61 6e 20 4d 75 6c 62 |of Paul |van Mulb|
|00000100| 72 65 67 74 27 73 20 42 | 42 58 54 2e 0a 23 20 0a |regt's B|BXT..# .|
|00000110| 23 20 43 6f 6d 70 6f 73 | 65 64 20 62 79 20 4d 61 |# Compos|ed by Ma|
|00000120| 72 6b 20 4e 61 67 61 74 | 61 20 28 6e 61 67 61 74 |rk Nagat|a (nagat|
|00000130| 61 40 6b 75 72 69 6d 73 | 2e 6b 79 6f 74 6f 2d 75 |a@kurims|.kyoto-u|
|00000140| 2e 61 63 2e 6a 70 29 20 | 0a 23 20 66 6f 72 20 41 |.ac.jp) |.# for A|
|00000150| 6c 70 68 61 20 35 2e 37 | 36 2c 20 34 2f 32 32 2f |lpha 5.7|6, 4/22/|
|00000160| 39 34 2e 0a 23 20 0a 23 | 20 4d 6f 64 69 66 69 65 |94..# .#| Modifie|
|00000170| 64 20 62 79 20 54 69 6d | 20 76 61 6e 20 64 65 72 |d by Tim| van der|
|00000180| 20 4c 65 65 75 77 20 28 | 74 6e 6c 65 65 75 77 40 | Leeuw (|tnleeuw@|
|00000190| 63 73 2e 76 75 2e 6e 6c | 29 2c 20 39 2f 31 34 2f |cs.vu.nl|), 9/14/|
|000001a0| 39 34 2e 0a 23 20 49 6e | 20 74 68 65 20 73 70 69 |94..# In| the spi|
|000001b0| 72 69 74 20 6f 66 20 65 | 6d 61 63 73 2e 0a 23 20 |rit of e|macs..# |
|000001c0| 49 20 68 61 76 65 20 6d | 6f 64 69 66 69 65 64 20 |I have m|odified |
|000001d0| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 65 78 74 |this rou|tine ext|
|000001e0| 65 6e 73 69 76 65 6c 79 | 20 74 6f 20 61 64 64 20 |ensively| to add |
|000001f0| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 63 |the abil|ity to c|
|00000200| 6f 6d 70 6c 65 74 65 0a | 23 20 61 20 77 6f 72 64 |omplete.|# a word|
|00000210| 20 69 6e 20 6d 75 6c 74 | 69 70 6c 65 20 77 61 79 | in mult|iple way|
|00000220| 73 20 69 66 20 63 61 6c | 6c 65 64 20 72 65 70 65 |s if cal|led repe|
|00000230| 61 74 65 64 6c 79 2e 0a | 23 20 46 6f 72 20 74 68 |atedly..|# For th|
|00000240| 69 73 20 70 75 72 70 6f | 73 65 2c 20 49 20 68 61 |is purpo|se, I ha|
|00000250| 76 65 20 69 6e 74 72 6f | 64 75 63 65 64 20 61 6c |ve intro|duced al|
|00000260| 6c 20 74 68 65 20 67 6c | 6f 62 61 6c 20 76 61 72 |l the gl|obal var|
|00000270| 69 61 62 6c 65 73 20 28 | 73 74 61 72 74 69 6e 67 |iables (|starting|
|00000280| 20 77 69 74 68 0a 23 20 | 5f 5f 77 63 5f 5f 29 20 | with.# |__wc__) |
|00000290| 61 6e 64 20 61 64 64 65 | 64 20 74 68 65 20 66 69 |and adde|d the fi|
|000002a0| 72 73 74 20 69 66 2d 73 | 74 61 74 65 6d 65 6e 74 |rst if-s|tatement|
|000002b0| 20 2d 2d 20 65 76 65 72 | 79 74 68 69 6e 67 20 62 | -- ever|ything b|
|000002c0| 65 74 77 65 65 6e 0a 23 | 20 27 73 65 74 20 70 6f |etween.#| 'set po|
|000002d0| 73 20 5b 67 65 74 50 6f | 73 5d 27 20 61 6e 64 20 |s [getPo|s]' and |
|000002e0| 27 62 61 63 6b 77 61 72 | 64 57 6f 72 64 27 2e 20 |'backwar|dWord'. |
|000002f0| 49 6e 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |In the o|riginal |
|00000300| 72 6f 75 74 69 6e 65 2c | 20 49 27 76 65 20 63 68 |routine,| I've ch|
|00000310| 61 6e 67 65 64 0a 23 20 | 73 6f 6d 65 20 65 78 69 |anged.# |some exi|
|00000320| 73 74 69 6e 67 20 76 61 | 72 69 61 62 6c 65 73 20 |sting va|riables |
|00000330| 74 6f 20 67 6c 6f 62 61 | 6c 73 2c 20 70 72 65 66 |to globa|ls, pref|
|00000340| 69 78 69 6e 67 20 74 68 | 65 69 72 20 6e 61 6d 65 |ixing th|eir name|
|00000350| 20 77 69 74 68 20 27 5f | 5f 77 63 5f 5f 27 2e 0a | with '_|_wc__'..|
|00000360| 23 0a 23 20 54 68 69 73 | 20 63 6f 64 65 20 69 73 |#.# This| code is|
|00000370| 20 70 72 6f 62 61 62 6c | 79 20 6e 6f 74 20 74 68 | probabl|y not th|
|00000380| 65 20 6d 6f 73 74 20 65 | 66 66 69 63 69 65 6e 74 |e most e|fficient|
|00000390| 20 74 63 6c 2d 63 6f 64 | 65 2c 20 6e 6f 72 20 74 | tcl-cod|e, nor t|
|000003a0| 68 65 20 6d 6f 73 74 20 | 65 6c 65 67 61 6e 74 0a |he most |elegant.|
|000003b0| 23 20 74 63 6c 2d 63 6f | 64 65 20 66 6f 72 20 74 |# tcl-co|de for t|
|000003c0| 68 69 73 20 70 72 6f 62 | 6c 65 6d 2c 20 62 75 74 |his prob|lem, but|
|000003d0| 20 68 65 79 2c 20 69 74 | 20 69 73 20 74 68 65 20 | hey, it| is the |
|000003e0| 66 69 72 73 74 20 66 75 | 6e 63 74 69 6f 6e 20 49 |first fu|nction I|
|000003f0| 27 76 65 20 65 76 65 72 | 0a 23 20 77 72 69 74 74 |'ve ever|.# writt|
|00000400| 65 6e 20 69 6e 20 74 63 | 6c 21 0a 23 20 49 66 20 |en in tc|l!.# If |
|00000410| 61 6e 79 6f 6e 65 20 68 | 61 73 20 73 6f 6d 65 20 |anyone h|as some |
|00000420| 73 75 67 67 65 73 74 69 | 6f 6e 73 20 66 6f 72 20 |suggesti|ons for |
|00000430| 69 6d 70 72 6f 76 65 6d | 65 6e 74 2c 20 6f 72 0a |improvem|ent, or.|
|00000440| 23 20 6b 6e 6f 77 73 20 | 6f 66 20 61 20 62 65 74 |# knows |of a bet|
|00000450| 74 65 72 20 61 6c 67 6f | 72 69 74 68 6d 2c 20 49 |ter algo|rithm, I|
|00000460| 20 77 6f 75 6c 64 20 6c | 69 6b 65 20 74 6f 20 6b | would l|ike to k|
|00000470| 6e 6f 77 20 69 74 2e 0a | 23 3d 3d 3d 3d 3d 3d 3d |now it..|#=======|
|00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 73 65 74 20 5f 5f |========|=.set __|
|000004d0| 77 63 5f 5f 69 6e 73 50 | 6f 73 20 2d 31 0a 70 72 |wc__insP|os -1.pr|
|000004e0| 6f 63 20 77 6f 72 64 43 | 6f 6d 70 6c 65 74 69 6f |oc wordC|ompletio|
|000004f0| 6e 20 7b 7d 20 7b 0a 09 | 67 6c 6f 62 61 6c 20 5f |n {} {..|global _|
|00000500| 5f 77 63 5f 5f 6c 65 6e | 20 5f 5f 77 63 5f 5f 70 |_wc__len| __wc__p|
|00000510| 72 65 76 50 6f 73 20 5f | 5f 77 63 5f 5f 69 6e 73 |revPos _|_wc__ins|
|00000520| 50 6f 73 20 5f 5f 77 63 | 5f 5f 70 72 65 76 46 6f |Pos __wc|__prevFo|
|00000530| 75 6e 64 20 5f 5f 77 63 | 5f 5f 70 61 74 20 5f 5f |und __wc|__pat __|
|00000540| 77 63 5f 5f 6e 65 78 74 | 53 74 61 72 74 20 5f 5f |wc__next|Start __|
|00000550| 77 63 5f 5f 66 77 64 0a | 09 0a 09 73 65 74 20 70 |wc__fwd.|...set p|
|00000560| 6f 73 20 5b 67 65 74 50 | 6f 73 5d 0a 09 69 66 20 |os [getP|os]..if |
|00000570| 24 70 6f 73 3d 3d 24 5f | 5f 77 63 5f 5f 69 6e 73 |$pos==$_|_wc__ins|
|00000580| 50 6f 73 20 7b 0a 09 09 | 23 20 43 75 72 73 6f 72 |Pos {...|# Cursor|
|00000590| 20 63 68 61 6e 67 65 64 | 20 70 6c 61 63 65 3f 0a | changed| place?.|
|000005a0| 09 09 73 65 74 20 73 6b | 69 70 53 74 72 20 24 5f |..set sk|ipStr $_|
|000005b0| 5f 77 63 5f 5f 70 72 65 | 76 46 6f 75 6e 64 0a 09 |_wc__pre|vFound..|
|000005c0| 09 77 68 69 6c 65 20 31 | 20 7b 09 0a 09 09 09 69 |.while 1| {.....i|
|000005d0| 66 20 24 5f 5f 77 63 5f | 5f 66 77 64 20 7b 0a 09 |f $__wc_|_fwd {..|
|000005e0| 09 09 09 73 65 74 20 66 | 6e 64 4d 73 67 20 22 66 |...set f|ndMsg "f|
|000005f0| 6f 75 6e 64 20 62 65 6c | 6f 77 2e 22 0a 09 09 09 |ound bel|ow."....|
|00000600| 7d 20 65 6c 73 65 20 7b | 0a 09 09 09 09 73 65 74 |} else {|.....set|
|00000610| 20 66 6e 64 4d 73 67 20 | 22 66 6f 75 6e 64 20 61 | fndMsg |"found a|
|00000620| 62 6f 76 65 2e 22 0a 09 | 09 09 7d 0a 09 09 09 69 |bove."..|..}....i|
|00000630| 66 20 7b 21 5b 63 61 74 | 63 68 20 7b 73 65 61 72 |f {![cat|ch {sear|
|00000640| 63 68 20 2d 66 20 24 5f | 5f 77 63 5f 5f 66 77 64 |ch -f $_|_wc__fwd|
|00000650| 20 2d 72 20 31 20 2d 69 | 20 30 20 2d 6d 20 31 20 | -r 1 -i| 0 -m 1 |
|00000660| 2d 2d 20 24 5f 5f 77 63 | 5f 5f 70 61 74 20 24 5f |-- $__wc|__pat $_|
|00000670| 5f 77 63 5f 5f 6e 65 78 | 74 53 74 61 72 74 7d 20 |_wc__nex|tStart} |
|00000680| 64 61 74 61 5d 7d 20 7b | 0a 09 09 09 09 73 65 74 |data]} {|.....set|
|00000690| 20 64 30 30 20 5b 6c 69 | 6e 64 65 78 20 24 64 61 | d00 [li|ndex $da|
|000006a0| 74 61 20 30 5d 0a 09 09 | 09 09 73 65 74 20 62 65 |ta 0]...|..set be|
|000006b0| 67 20 5b 65 78 70 72 20 | 24 64 30 30 2b 24 5f 5f |g [expr |$d00+$__|
|000006c0| 77 63 5f 5f 6c 65 6e 5d | 0a 09 09 09 09 73 65 74 |wc__len]|.....set|
|000006d0| 20 65 6e 64 20 5b 6c 69 | 6e 64 65 78 20 24 64 61 | end [li|ndex $da|
|000006e0| 74 61 20 31 5d 0a 09 09 | 09 09 73 65 74 20 5f 5f |ta 1]...|..set __|
|000006f0| 77 63 5f 5f 70 72 65 76 | 46 6f 75 6e 64 20 5b 67 |wc__prev|Found [g|
|00000700| 65 74 54 65 78 74 20 24 | 64 30 30 20 24 65 6e 64 |etText $|d00 $end|
|00000710| 5d 0a 09 09 09 09 69 66 | 20 5b 73 74 72 69 6e 67 |].....if| [string|
|00000720| 20 63 6f 6d 70 61 72 65 | 20 24 73 6b 69 70 53 74 | compare| $skipSt|
|00000730| 72 20 24 5f 5f 77 63 5f | 5f 70 72 65 76 46 6f 75 |r $__wc_|_prevFou|
|00000740| 6e 64 5d 20 7b 0a 09 09 | 09 09 09 23 20 48 61 76 |nd] {...|...# Hav|
|00000750| 65 20 77 65 20 67 6f 74 | 20 74 68 65 20 73 61 6d |e we got| the sam|
|00000760| 65 20 77 6f 72 64 20 74 | 77 69 63 65 3f 0a 09 09 |e word t|wice?...|
|00000770| 09 09 09 73 65 74 20 74 | 78 74 20 5b 67 65 74 54 |...set t|xt [getT|
|00000780| 65 78 74 20 24 62 65 67 | 20 24 65 6e 64 5d 0a 09 |ext $beg| $end]..|
|00000790| 09 09 09 09 64 65 6c 65 | 74 65 54 65 78 74 20 24 |....dele|teText $|
|000007a0| 5f 5f 77 63 5f 5f 70 72 | 65 76 50 6f 73 20 24 5f |__wc__pr|evPos $_|
|000007b0| 5f 77 63 5f 5f 69 6e 73 | 50 6f 73 0a 09 09 09 09 |_wc__ins|Pos.....|
|000007c0| 09 67 6f 74 6f 20 24 5f | 5f 77 63 5f 5f 70 72 65 |.goto $_|_wc__pre|
|000007d0| 76 50 6f 73 0a 09 09 09 | 09 09 69 6e 73 65 72 74 |vPos....|..insert|
|000007e0| 54 65 78 74 20 24 74 78 | 74 0a 09 09 09 09 09 6d |Text $tx|t......m|
|000007f0| 65 73 73 61 67 65 20 24 | 66 6e 64 4d 73 67 0a 09 |essage $|fndMsg..|
|00000800| 09 09 09 09 23 20 53 65 | 74 20 61 20 6e 75 6d 62 |....# Se|t a numb|
|00000810| 65 72 20 6f 66 20 67 6c | 6f 62 61 6c 73 20 66 6f |er of gl|obals fo|
|00000820| 72 20 70 6f 73 73 69 62 | 6c 65 20 6e 65 78 74 20 |r possib|le next |
|00000830| 67 6f 2d 61 72 6f 75 6e | 64 0a 09 09 09 09 09 73 |go-aroun|d......s|
|00000840| 65 74 20 5f 5f 77 63 5f | 5f 69 6e 73 50 6f 73 20 |et __wc_|_insPos |
|00000850| 5b 67 65 74 50 6f 73 5d | 0a 09 09 09 09 09 69 66 |[getPos]|......if|
|00000860| 20 24 5f 5f 77 63 5f 5f | 66 77 64 20 7b 0a 09 09 | $__wc__|fwd {...|
|00000870| 09 09 09 09 23 20 53 65 | 61 72 63 68 20 46 6f 72 |....# Se|arch For|
|00000880| 77 61 72 64 73 0a 09 09 | 09 09 09 09 73 65 74 20 |wards...|....set |
|00000890| 5f 5f 77 63 5f 5f 6e 65 | 78 74 53 74 61 72 74 20 |__wc__ne|xtStart |
|000008a0| 24 65 6e 64 0a 09 09 09 | 09 09 09 23 20 45 6e 64 |$end....|...# End|
|000008b0| 20 6f 66 20 66 6f 75 6e | 64 20 77 6f 72 64 0a 09 | of foun|d word..|
|000008c0| 09 09 09 09 7d 20 65 6c | 73 65 20 7b 0a 09 09 09 |....} el|se {....|
|000008d0| 09 09 09 23 20 53 65 61 | 72 63 68 20 42 61 63 6b |...# Sea|rch Back|
|000008e0| 77 61 72 64 73 0a 09 09 | 09 09 09 09 73 65 74 20 |wards...|....set |
|000008f0| 5f 5f 77 63 5f 5f 6e 65 | 78 74 53 74 61 72 74 20 |__wc__ne|xtStart |
|00000900| 5b 65 78 70 72 20 24 64 | 30 30 20 2d 20 24 5f 5f |[expr $d|00 - $__|
|00000910| 77 63 5f 5f 6c 65 6e 5d | 0a 09 09 09 09 09 09 23 |wc__len]|.......#|
|00000920| 20 42 65 66 6f 72 65 20 | 73 74 61 72 74 20 6f 66 | Before |start of|
|00000930| 20 66 6f 75 6e 64 20 77 | 6f 72 64 0a 09 09 09 09 | found w|ord.....|
|00000940| 09 09 69 66 20 24 5f 5f | 77 63 5f 5f 6e 65 78 74 |..if $__|wc__next|
|00000950| 53 74 61 72 74 3c 3d 30 | 20 7b 0a 09 09 09 09 09 |Start<=0| {......|
|00000960| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 66 77 64 20 |..set __|wc__fwd |
|00000970| 31 0a 09 09 09 09 09 09 | 09 73 65 74 20 5f 5f 77 |1.......|.set __w|
|00000980| 63 5f 5f 6e 65 78 74 53 | 74 61 72 74 20 24 5f 5f |c__nextS|tart $__|
|00000990| 77 63 5f 5f 69 6e 73 50 | 6f 73 0a 09 09 09 09 09 |wc__insP|os......|
|000009a0| 09 7d 0a 09 09 09 09 09 | 7d 0a 09 09 09 09 09 72 |.}......|}......r|
|000009b0| 65 74 75 72 6e 0a 09 09 | 09 09 7d 20 65 6c 73 65 |eturn...|..} else|
|000009c0| 20 7b 0a 09 09 09 09 09 | 23 20 4d 6f 76 65 20 73 | {......|# Move s|
|000009d0| 74 61 72 74 20 6f 66 20 | 73 65 61 72 63 68 20 61 |tart of |search a|
|000009e0| 66 74 65 72 20 66 69 6e | 64 69 6e 67 20 73 74 72 |fter fin|ding str|
|000009f0| 69 6e 67 20 61 67 61 69 | 6e 0a 09 09 09 09 09 69 |ing agai|n......i|
|00000a00| 66 20 24 5f 5f 77 63 5f | 5f 66 77 64 20 7b 0a 09 |f $__wc_|_fwd {..|
|00000a10| 09 09 09 09 09 23 20 53 | 65 61 72 63 68 69 6e 67 |.....# S|earching|
|00000a20| 20 46 6f 72 77 61 72 64 | 73 0a 09 09 09 09 09 09 | Forward|s.......|
|00000a30| 73 65 74 20 5f 5f 77 63 | 5f 5f 6e 65 78 74 53 74 |set __wc|__nextSt|
|00000a40| 61 72 74 20 24 65 6e 64 | 0a 09 09 09 09 09 09 23 |art $end|.......#|
|00000a50| 20 45 6e 64 20 6f 66 20 | 66 6f 75 6e 64 20 77 6f | End of |found wo|
|00000a60| 72 64 0a 09 09 09 09 09 | 7d 20 65 6c 73 65 20 7b |rd......|} else {|
|00000a70| 0a 09 09 09 09 09 09 23 | 20 53 74 69 6c 6c 20 53 |.......#| Still S|
|00000a80| 65 61 72 63 68 69 6e 67 | 20 42 61 63 6b 77 61 72 |earching| Backwar|
|00000a90| 64 73 0a 09 09 09 09 09 | 09 73 65 74 20 5f 5f 77 |ds......|.set __w|
|00000aa0| 63 5f 5f 6e 65 78 74 53 | 74 61 72 74 20 5b 65 78 |c__nextS|tart [ex|
|00000ab0| 70 72 20 24 64 30 30 20 | 2d 20 24 5f 5f 77 63 5f |pr $d00 |- $__wc_|
|00000ac0| 5f 6c 65 6e 5d 0a 09 09 | 09 09 09 09 23 20 42 65 |_len]...|....# Be|
|00000ad0| 66 6f 72 65 20 73 74 61 | 72 74 20 6f 66 20 66 6f |fore sta|rt of fo|
|00000ae0| 75 6e 64 20 77 6f 72 64 | 0a 09 09 09 09 09 09 69 |und word|.......i|
|00000af0| 66 20 24 5f 5f 77 63 5f | 5f 6e 65 78 74 53 74 61 |f $__wc_|_nextSta|
|00000b00| 72 74 3c 3d 30 20 7b 0a | 09 09 09 09 09 09 09 73 |rt<=0 {.|.......s|
|00000b10| 65 74 20 5f 5f 77 63 5f | 5f 66 77 64 20 31 0a 09 |et __wc_|_fwd 1..|
|00000b20| 09 09 09 09 09 09 73 65 | 74 20 5f 5f 77 63 5f 5f |......se|t __wc__|
|00000b30| 6e 65 78 74 53 74 61 72 | 74 20 24 5f 5f 77 63 5f |nextStar|t $__wc_|
|00000b40| 5f 69 6e 73 50 6f 73 0a | 09 09 09 09 09 09 7d 0a |_insPos.|......}.|
|00000b50| 09 09 09 09 09 7d 0a 09 | 09 09 09 7d 0a 09 09 09 |.....}..|...}....|
|00000b60| 09 23 20 45 6e 64 20 69 | 66 20 73 74 72 69 6e 67 |.# End i|f string|
|00000b70| 20 63 6f 6d 70 61 72 65 | 20 0a 09 09 09 7d 20 65 | compare| ....} e|
|00000b80| 6c 73 65 20 7b 0a 09 09 | 09 09 23 20 53 65 61 72 |lse {...|..# Sear|
|00000b90| 63 68 20 73 74 72 69 6e | 67 20 6e 6f 74 20 66 6f |ch strin|g not fo|
|00000ba0| 75 6e 64 0a 09 09 09 09 | 69 66 20 24 5f 5f 77 63 |und.....|if $__wc|
|00000bb0| 5f 5f 66 77 64 20 7b 0a | 09 09 09 09 09 23 20 57 |__fwd {.|.....# W|
|00000bc0| 65 20 77 65 72 65 20 61 | 6c 72 65 61 64 79 20 6c |e were a|lready l|
|00000bd0| 6f 6f 6b 69 6e 67 20 66 | 6f 72 77 61 72 64 2c 20 |ooking f|orward, |
|00000be0| 73 6f 20 74 68 65 20 77 | 6f 72 64 20 69 73 20 6e |so the w|ord is n|
|00000bf0| 6f 74 20 69 6e 20 74 68 | 65 20 66 69 6c 65 0a 09 |ot in th|e file..|
|00000c00| 09 09 09 09 6d 65 73 73 | 61 67 65 20 22 4e 6f 74 |....mess|age "Not|
|00000c10| 20 66 6f 75 6e 64 2e 22 | 0a 09 09 09 09 09 73 65 | found."|......se|
|00000c20| 74 20 5f 5f 77 63 5f 5f | 69 6e 73 50 6f 73 20 2d |t __wc__|insPos -|
|00000c30| 31 0a 09 09 09 09 09 67 | 6f 74 6f 20 24 70 6f 73 |1......g|oto $pos|
|00000c40| 0a 09 09 09 09 09 62 61 | 63 6b 77 61 72 64 57 6f |......ba|ckwardWo|
|00000c50| 72 64 53 65 6c 65 63 74 | 0a 09 09 09 09 09 72 65 |rdSelect|......re|
|00000c60| 74 75 72 6e 0a 09 09 09 | 09 7d 20 65 6c 73 65 20 |turn....|.} else |
|00000c70| 7b 0a 09 09 09 09 09 23 | 20 73 74 61 72 74 20 6c |{......#| start l|
|00000c80| 6f 6f 6b 69 6e 67 20 66 | 6f 72 77 61 72 64 0a 09 |ooking f|orward..|
|00000c90| 09 09 09 09 73 65 74 20 | 5f 5f 77 63 5f 5f 66 77 |....set |__wc__fw|
|00000ca0| 64 20 31 0a 09 09 09 09 | 09 73 65 74 20 5f 5f 77 |d 1.....|.set __w|
|00000cb0| 63 5f 5f 6e 65 78 74 53 | 74 61 72 74 20 24 5f 5f |c__nextS|tart $__|
|00000cc0| 77 63 5f 5f 69 6e 73 50 | 6f 73 0a 09 09 09 09 7d |wc__insP|os.....}|
|00000cd0| 0a 09 09 09 7d 0a 09 09 | 09 0a 09 09 7d 0a 09 7d |....}...|....}..}|
|00000ce0| 0a 09 62 61 63 6b 77 61 | 72 64 57 6f 72 64 0a 09 |..backwa|rdWord..|
|00000cf0| 23 20 53 74 61 72 74 20 | 6e 65 77 20 73 65 61 72 |# Start |new sear|
|00000d00| 63 68 20 66 6f 72 20 57 | 6f 72 64 43 6f 6d 70 6c |ch for W|ordCompl|
|00000d10| 65 74 69 6f 6e 0a 09 73 | 65 74 20 73 74 61 72 74 |etion..s|et start|
|00000d20| 20 5b 67 65 74 50 6f 73 | 5d 0a 09 73 65 74 20 6f | [getPos|]..set o|
|00000d30| 6e 65 20 5b 67 65 74 54 | 65 78 74 20 24 73 74 61 |ne [getT|ext $sta|
|00000d40| 72 74 20 24 70 6f 73 5d | 0a 09 73 65 74 20 5f 5f |rt $pos]|..set __|
|00000d50| 77 63 5f 5f 6c 65 6e 20 | 5b 65 78 70 72 20 24 70 |wc__len |[expr $p|
|00000d60| 6f 73 2d 24 73 74 61 72 | 74 5d 0a 09 73 65 74 20 |os-$star|t]..set |
|00000d70| 5f 5f 77 63 5f 5f 70 61 | 74 20 5b 61 70 70 65 6e |__wc__pa|t [appen|
|00000d80| 64 20 6f 6e 65 20 7b 5b | 61 2d 7a 41 2d 5a 30 2d |d one {[|a-zA-Z0-|
|00000d90| 39 5f 5d 2b 7d 5d 0a 09 | 73 65 74 20 73 74 61 72 |9_]+}]..|set star|
|00000da0| 74 20 5b 65 78 70 72 20 | 24 73 74 61 72 74 2d 31 |t [expr |$start-1|
|00000db0| 5d 0a 09 69 66 20 7b 21 | 5b 63 61 74 63 68 20 7b |]..if {!|[catch {|
|00000dc0| 73 65 61 72 63 68 20 2d | 66 20 30 20 2d 72 20 31 |search -|f 0 -r 1|
|00000dd0| 20 2d 69 20 30 20 2d 6d | 20 31 20 2d 2d 20 24 5f | -i 0 -m| 1 -- $_|
|00000de0| 5f 77 63 5f 5f 70 61 74 | 20 24 73 74 61 72 74 7d |_wc__pat| $start}|
|00000df0| 20 64 61 74 61 5d 7d 20 | 7b 0a 09 09 73 65 74 20 | data]} |{...set |
|00000e00| 64 30 30 20 5b 6c 69 6e | 64 65 78 20 24 64 61 74 |d00 [lin|dex $dat|
|00000e10| 61 20 30 5d 0a 09 09 73 | 65 74 20 62 65 67 20 5b |a 0]...s|et beg [|
|00000e20| 65 78 70 72 20 24 64 30 | 30 2b 24 5f 5f 77 63 5f |expr $d0|0+$__wc_|
|00000e30| 5f 6c 65 6e 5d 0a 09 09 | 73 65 74 20 65 6e 64 20 |_len]...|set end |
|00000e40| 5b 6c 69 6e 64 65 78 20 | 24 64 61 74 61 20 31 5d |[lindex |$data 1]|
|00000e50| 0a 09 09 73 65 74 20 5f | 5f 77 63 5f 5f 70 72 65 |...set _|_wc__pre|
|00000e60| 76 46 6f 75 6e 64 20 5b | 67 65 74 54 65 78 74 20 |vFound [|getText |
|00000e70| 24 64 30 30 20 24 65 6e | 64 20 5d 0a 09 09 73 65 |$d00 $en|d ]...se|
|00000e80| 74 20 74 78 74 20 5b 67 | 65 74 54 65 78 74 20 24 |t txt [g|etText $|
|00000e90| 62 65 67 20 24 65 6e 64 | 5d 0a 09 09 67 6f 74 6f |beg $end|]...goto|
|00000ea0| 20 24 70 6f 73 0a 09 09 | 69 6e 73 65 72 74 54 65 | $pos...|insertTe|
|00000eb0| 78 74 20 24 74 78 74 0a | 09 09 6d 65 73 73 61 67 |xt $txt.|..messag|
|00000ec0| 65 20 22 66 6f 75 6e 64 | 20 61 62 6f 76 65 2e 22 |e "found| above."|
|00000ed0| 0a 09 09 23 20 53 65 74 | 20 61 20 6e 75 6d 62 65 |...# Set| a numbe|
|00000ee0| 72 20 6f 66 20 67 6c 6f | 62 61 6c 73 20 66 6f 72 |r of glo|bals for|
|00000ef0| 20 70 6f 73 73 69 62 6c | 65 20 6e 65 78 74 20 67 | possibl|e next g|
|00000f00| 6f 2d 61 72 6f 75 6e 64 | 0a 09 09 73 65 74 20 5f |o-around|...set _|
|00000f10| 5f 77 63 5f 5f 69 6e 73 | 50 6f 73 20 5b 67 65 74 |_wc__ins|Pos [get|
|00000f20| 50 6f 73 5d 0a 09 09 73 | 65 74 20 5f 5f 77 63 5f |Pos]...s|et __wc_|
|00000f30| 5f 70 72 65 76 50 6f 73 | 20 24 70 6f 73 0a 09 09 |_prevPos| $pos...|
|00000f40| 73 65 74 20 5f 5f 77 63 | 5f 5f 6e 65 78 74 53 74 |set __wc|__nextSt|
|00000f50| 61 72 74 20 5b 65 78 70 | 72 20 24 64 30 30 2d 24 |art [exp|r $d00-$|
|00000f60| 5f 5f 77 63 5f 5f 6c 65 | 6e 5d 0a 09 09 73 65 74 |__wc__le|n]...set|
|00000f70| 20 5f 5f 77 63 5f 5f 66 | 77 64 20 30 0a 09 09 72 | __wc__f|wd 0...r|
|00000f80| 65 74 75 72 6e 0a 09 7d | 0a 09 69 66 20 7b 21 5b |eturn..}|..if {![|
|00000f90| 63 61 74 63 68 20 7b 73 | 65 61 72 63 68 20 2d 66 |catch {s|earch -f|
|00000fa0| 20 31 20 2d 72 20 31 20 | 2d 69 20 30 20 2d 6d 20 | 1 -r 1 |-i 0 -m |
|00000fb0| 31 20 2d 2d 20 24 5f 5f | 77 63 5f 5f 70 61 74 20 |1 -- $__|wc__pat |
|00000fc0| 24 70 6f 73 7d 20 64 61 | 74 61 5d 7d 20 7b 0a 09 |$pos} da|ta]} {..|
|00000fd0| 09 73 65 74 20 5f 5f 77 | 63 5f 5f 70 72 65 76 46 |.set __w|c__prevF|
|00000fe0| 6f 75 6e 64 20 5b 67 65 | 74 54 65 78 74 20 5b 6c |ound [ge|tText [l|
|00000ff0| 69 6e 64 65 78 20 24 64 | 61 74 61 20 30 5d 20 5b |index $d|ata 0] [|
|00001000| 6c 69 6e 64 65 78 20 24 | 64 61 74 61 20 31 5d 20 |lindex $|data 1] |
|00001010| 5d 0a 09 09 73 65 74 20 | 62 65 67 20 5b 65 78 70 |]...set |beg [exp|
|00001020| 72 20 5b 6c 69 6e 64 65 | 78 20 24 64 61 74 61 20 |r [linde|x $data |
|00001030| 30 5d 2b 24 5f 5f 77 63 | 5f 5f 6c 65 6e 5d 0a 09 |0]+$__wc|__len]..|
|00001040| 09 73 65 74 20 65 6e 64 | 20 5b 6c 69 6e 64 65 78 |.set end| [lindex|
|00001050| 20 24 64 61 74 61 20 31 | 5d 0a 09 09 73 65 74 20 | $data 1|]...set |
|00001060| 74 78 74 20 5b 67 65 74 | 54 65 78 74 20 24 62 65 |txt [get|Text $be|
|00001070| 67 20 24 65 6e 64 5d 0a | 09 09 67 6f 74 6f 20 24 |g $end].|..goto $|
|00001080| 70 6f 73 0a 09 09 69 6e | 73 65 72 74 54 65 78 74 |pos...in|sertText|
|00001090| 20 24 74 78 74 0a 09 09 | 6d 65 73 73 61 67 65 20 | $txt...|message |
|000010a0| 22 66 6f 75 6e 64 20 62 | 65 6c 6f 77 2e 22 0a 09 |"found b|elow."..|
|000010b0| 09 23 20 53 65 74 20 61 | 20 6e 75 6d 62 65 72 20 |.# Set a| number |
|000010c0| 6f 66 20 67 6c 6f 62 61 | 6c 73 20 66 6f 72 20 70 |of globa|ls for p|
|000010d0| 6f 73 73 69 62 6c 65 20 | 6e 65 78 74 20 67 6f 2d |ossible |next go-|
|000010e0| 61 72 6f 75 6e 64 0a 09 | 09 73 65 74 20 5f 5f 77 |around..|.set __w|
|000010f0| 63 5f 5f 69 6e 73 50 6f | 73 20 5b 67 65 74 50 6f |c__insPo|s [getPo|
|00001100| 73 5d 0a 09 09 73 65 74 | 20 5f 5f 77 63 5f 5f 70 |s]...set| __wc__p|
|00001110| 72 65 76 50 6f 73 20 24 | 70 6f 73 0a 09 09 73 65 |revPos $|pos...se|
|00001120| 74 20 5f 5f 77 63 5f 5f | 6e 65 78 74 53 74 61 72 |t __wc__|nextStar|
|00001130| 74 20 24 65 6e 64 0a 09 | 09 73 65 74 20 5f 5f 77 |t $end..|.set __w|
|00001140| 63 5f 5f 66 77 64 20 31 | 0a 09 09 72 65 74 75 72 |c__fwd 1|...retur|
|00001150| 6e 0a 09 7d 0a 09 67 6f | 74 6f 20 24 70 6f 73 0a |n..}..go|to $pos.|
|00001160| 09 62 61 63 6b 77 61 72 | 64 57 6f 72 64 53 65 6c |.backwar|dWordSel|
|00001170| 65 63 74 0a 7d 0a 0a 0a | 0a 23 20 54 68 69 73 20 |ect.}...|.# This |
|00001180| 69 73 20 61 6c 6c 20 64 | 75 65 20 74 6f 20 74 68 |is all d|ue to th|
|00001190| 65 20 69 64 65 61 20 6f | 66 20 50 61 75 6c 20 76 |e idea o|f Paul v|
|000011a0| 61 6e 20 4d 75 6c 62 72 | 65 67 74 2e 20 49 6e 20 |an Mulbr|egt. In |
|000011b0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |his docu|mentatio|
|000011c0| 6e 20 0a 23 20 6f 66 20 | 68 69 73 20 42 42 45 64 |n .# of |his BBEd|
|000011d0| 69 74 20 42 42 45 78 74 | 65 6e 73 69 6f 6e 20 28 |it BBExt|ension (|
|000011e0| 69 6e 66 6f 2d 6d 61 63 | 2f 74 65 78 74 2f 62 62 |info-mac|/text/bb|
|000011f0| 65 64 69 74 2d 66 6c 2d | 70 61 63 6b 61 67 65 2d |edit-fl-|package-|
|00001200| 31 31 2e 68 71 78 29 2c | 20 0a 23 20 68 65 20 65 |11.hqx),| .# he e|
|00001210| 78 70 6c 61 69 6e 73 3a | 0a 23 20 0a 23 20 2d 2d |xplains:|.# .# --|
|00001220| 20 20 46 72 6f 6d 20 74 | 68 65 20 64 6f 63 75 6d | From t|he docum|
|00001230| 65 6e 74 61 74 69 6f 6e | 20 77 72 69 74 74 65 6e |entation| written|
|00001240| 20 62 79 20 20 20 20 20 | 20 20 20 2d 2d 0a 23 20 | by | --.# |
|00001250| 2d 2d 20 20 50 61 75 6c | 20 76 61 6e 20 4d 75 6c |-- Paul| van Mul|
|00001260| 62 72 65 67 74 20 28 70 | 61 75 6c 76 6d 40 64 72 |bregt (p|aulvm@dr|
|00001270| 61 67 6f 6e 73 79 73 2e | 63 6f 6d 29 20 2d 2d 0a |agonsys.|com) --.|
|00001280| 23 20 0a 23 20 57 6f 72 | 64 20 43 6f 6d 70 6c 65 |# .# Wor|d Comple|
|00001290| 74 69 6f 6e 0a 23 20 0a | 23 20 54 68 69 73 20 65 |tion.# .|# This e|
|000012a0| 78 74 65 6e 73 69 6f 6e | 20 73 61 76 65 73 20 74 |xtension| saves t|
|000012b0| 79 70 69 6e 67 2c 20 61 | 73 20 77 65 6c 6c 20 61 |yping, a|s well a|
|000012c0| 73 20 6d 61 6b 69 6e 67 | 20 73 75 72 65 20 76 61 |s making| sure va|
|000012d0| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 20 61 72 65 |riable n|ames are|
|000012e0| 20 0a 23 20 63 6f 72 72 | 65 63 74 2e 20 20 57 68 | .# corr|ect. Wh|
|000012f0| 69 6c 65 20 74 79 70 69 | 6e 67 20 74 68 65 20 66 |ile typi|ng the f|
|00001300| 6f 6c 6c 6f 77 69 6e 67 | 20 43 20 63 6f 64 65 2c |ollowing| C code,|
|00001310| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6e 65 65 | there i|s no nee|
|00001320| 64 20 74 6f 20 74 79 70 | 65 20 61 6c 6c 20 0a 23 |d to typ|e all .#|
|00001330| 20 6f 66 20 74 68 65 20 | 73 65 63 6f 6e 64 20 6f | of the |second o|
|00001340| 63 63 75 72 72 65 6e 63 | 65 20 6f 66 20 76 65 72 |ccurrenc|e of ver|
|00001350| 79 53 70 65 63 69 61 6c | 49 6e 74 2e 20 20 4f 6e |ySpecial|Int. On|
|00001360| 65 20 63 6f 75 6c 64 20 | 63 6f 70 79 20 61 6e 64 |e could |copy and|
|00001370| 20 70 61 73 74 65 2c 20 | 62 75 74 20 0a 23 20 61 | paste, |but .# a|
|00001380| 6e 6f 74 68 65 72 20 77 | 61 79 20 69 73 20 74 6f |nother w|ay is to|
|00001390| 20 74 79 70 65 20 61 20 | 66 65 77 20 6c 65 74 74 | type a |few lett|
|000013a0| 65 72 73 2c 20 61 6e 64 | 20 73 65 6c 65 63 74 20 |ers, and| select |
|000013b0| 74 68 65 20 57 6f 72 64 | 20 43 6f 6d 70 6c 65 74 |the Word| Complet|
|000013c0| 69 6f 6e 20 0a 23 20 45 | 78 74 65 6e 73 69 6f 6e |ion .# E|xtension|
|000013d0| 2e 0a 23 20 0a 23 20 09 | 69 6e 74 20 76 65 72 79 |..# .# .|int very|
|000013e0| 53 70 65 63 69 61 6c 49 | 6e 74 20 3d 20 31 30 3b |SpecialI|nt = 10;|
|000013f0| 0a 23 20 09 77 68 69 6c | 65 28 76 65 72 79 53 70 |.# .whil|e(verySp|
|00001400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001430| 20 20 20 20 0a 23 20 0a | 23 20 0a 23 20 62 65 63 | .# .|# .# bec|
|00001440| 6f 6d 65 73 0a 23 20 0a | 23 20 09 69 6e 74 20 76 |omes.# .|# .int v|
|00001450| 65 72 79 53 70 65 63 69 | 61 6c 49 6e 74 20 3d 20 |erySpeci|alInt = |
|00001460| 31 30 3b 0a 23 20 09 77 | 68 69 6c 65 28 76 65 72 |10;.# .w|hile(ver|
|00001470| 79 53 70 65 63 69 61 6c | 49 6e 74 20 20 20 20 20 |ySpecial|Int |
|00001480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014a0| 20 20 20 20 20 20 20 20 | 0a 23 20 0a 23 20 20 20 | |.# .# |
|000014b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 20 0a 23 20 0a 23 20 | 57 6f 72 64 20 43 6f 6d | .# .# |Word Com|
|000014f0| 70 6c 65 74 69 6f 6e 20 | 77 69 6c 6c 20 6c 6f 6f |pletion |will loo|
|00001500| 6b 20 62 61 63 6b 20 69 | 6e 20 74 68 65 20 63 6f |k back i|n the co|
|00001510| 64 65 20 74 6f 20 66 69 | 6e 64 20 74 68 65 20 66 |de to fi|nd the f|
|00001520| 69 72 73 74 20 6d 61 74 | 63 68 20 61 6e 64 20 74 |irst mat|ch and t|
|00001530| 68 65 6e 20 0a 23 20 65 | 78 74 65 6e 64 20 74 68 |hen .# e|xtend th|
|00001540| 65 20 63 75 72 72 65 6e | 74 20 6f 63 63 75 72 72 |e curren|t occurr|
|00001550| 65 6e 63 65 20 74 6f 20 | 6d 61 74 63 68 20 74 68 |ence to |match th|
|00001560| 65 20 70 72 65 76 69 6f | 75 73 20 6f 63 63 75 72 |e previo|us occur|
|00001570| 72 65 6e 63 65 2e 20 20 | 49 66 20 61 20 6d 61 74 |rence. |If a mat|
|00001580| 63 68 20 0a 23 20 69 73 | 20 6e 6f 74 20 66 6f 75 |ch .# is| not fou|
|00001590| 6e 64 20 6c 6f 6f 6b 69 | 6e 67 20 62 61 63 6b 77 |nd looki|ng backw|
|000015a0| 61 72 64 73 2c 20 74 68 | 65 6e 20 69 74 20 6c 6f |ards, th|en it lo|
|000015b0| 6f 6b 73 20 66 6f 72 77 | 61 72 64 73 2e 20 20 49 |oks forw|ards. I|
|000015c0| 66 20 6e 6f 74 20 66 6f | 75 6e 64 20 0a 23 20 66 |f not fo|und .# f|
|000015d0| 6f 72 77 61 72 64 73 2c | 20 74 68 65 20 77 6f 72 |orwards,| the wor|
|000015e0| 64 20 69 73 20 73 65 6c | 65 63 74 65 64 2e 20 20 |d is sel|ected. |
|000015f0| 54 68 69 73 20 69 73 20 | 61 20 71 75 69 63 6b 20 |This is |a quick |
|00001600| 77 61 79 20 74 6f 20 73 | 61 76 65 20 6f 6e 20 74 |way to s|ave on t|
|00001610| 79 70 69 6e 67 2c 20 0a | 23 20 67 6f 6f 64 20 66 |yping, .|# good f|
|00001620| 6f 72 20 68 65 6c 70 69 | 6e 67 20 70 72 65 76 65 |or helpi|ng preve|
|00001630| 6e 74 20 52 53 49 2c 20 | 62 75 74 20 70 65 72 68 |nt RSI, |but perh|
|00001640| 61 70 73 20 6d 6f 72 65 | 20 69 6d 70 6f 72 74 61 |aps more| importa|
|00001650| 6e 74 6c 79 2c 20 74 6f | 20 6d 61 6b 65 20 73 75 |ntly, to| make su|
|00001660| 72 65 20 0a 23 20 74 68 | 61 74 20 76 61 72 69 61 |re .# th|at varia|
|00001670| 62 6c 65 20 6e 61 6d 65 | 73 20 61 72 65 20 73 70 |ble name|s are sp|
|00001680| 65 6c 74 20 63 6f 72 72 | 65 63 74 6c 79 2e 0a 23 |elt corr|ectly..#|
|00001690| 20 0a 23 20 54 68 65 72 | 65 20 69 73 20 6e 6f 20 | .# Ther|e is no |
|000016a0| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 66 |user int|erface f|
|000016b0| 6f 72 20 57 6f 72 64 20 | 43 6f 6d 70 6c 65 74 69 |or Word |Completi|
|000016c0| 6f 6e 2e 0a 23 20 0a 23 | 20 54 68 65 20 75 73 65 |on..# .#| The use|
|000016d0| 66 75 6c 6e 65 73 73 20 | 6f 66 20 74 68 69 73 20 |fulness |of this |
|000016e0| 65 78 74 65 6e 73 69 6f | 6e 20 69 73 20 67 72 65 |extensio|n is gre|
|000016f0| 61 74 6c 79 20 65 6e 68 | 61 6e 63 65 64 20 69 66 |atly enh|anced if|
|00001700| 20 74 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 69 | the ext|ension i|
|00001710| 73 20 0a 23 20 62 6f 75 | 6e 64 20 74 6f 20 61 20 |s .# bou|nd to a |
|00001720| 6b 65 79 21 0a 23 20 0a | 23 20 2d 2d 20 65 6e 64 |key!.# .|# -- end|
|00001730| 20 6f 66 20 50 61 75 6c | 20 76 61 6e 20 4d 75 6c | of Paul| van Mul|
|00001740| 62 72 65 67 74 27 73 20 | 65 78 70 6c 61 6e 61 74 |bregt's |explanat|
|00001750| 69 6f 6e 2e 20 2d 2d 0a | 0a 0a 00 00 00 00 00 00 |ion. --.|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001790| ff ff ff f6 66 cc cc cc | c6 dd 00 00 fc cc ff cc |....f...|........|
|000017a0| cc cc cf f6 66 66 cc cc | c6 dd 00 00 0f fc fc fc |....ff..|........|
|000017b0| 12 77 6f 72 64 43 6f 6d | 70 6c 65 74 69 6f 6e 2e |.wordCom|pletion.|
|000017c0| 74 63 6c 43 02 00 02 00 | 54 45 58 54 41 4c 46 41 |tclC....|TEXTALFA|
|000017d0| 02 00 54 45 58 54 41 4c | 46 41 01 00 ff ff ff ff |..TEXTAL|FA......|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 a9 e3 66 f1 00 00 | 16 da 00 00 01 7e fc cf |....f...|.....~..|
|00001800| cc cf cc f8 8c cc cc cc | c6 dd 00 00 d0 6c fc fc |........|.....l..|
|00001810| cc cc fc f8 88 cc cc cc | c6 dd 00 00 d0 6c ff cc |........|.....l..|
|00001820| cc cc cf fc 88 8c cc cc | c6 dd 00 00 d0 6c ff ff |........|.....l..|
|00001830| ff ff ff fc c8 8c cc cc | c6 dd 00 00 d0 6c cc cc |........|.....l..|
|00001840| cc cc cc cc cc cc cc cc | c6 dd 00 00 d0 6c cc cc |........|.....l..|
|00001850| 33 cc cc cc cc cc cc cc | c6 dd 00 00 d0 6c cc cc |3.......|.....l..|
|00001860| c3 3c cc cc cc cc cc cc | c6 dd 00 00 d0 6c cc cc |.<......|.....l..|
|00001870| c3 33 cc cc cc cc cc cc | c6 dd 00 00 d0 6c cc cc |.3......|.....l..|
|00001880| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 dd |...H..Mo|naco....|
|00001890| c7 d8 00 00 00 00 00 f4 | cc e4 00 03 2f 0a 03 0d |........|..../...|
|000018a0| 00 e8 c9 b0 00 00 00 04 | 00 04 00 28 00 03 01 ca |........|...(....|
|000018b0| 02 79 00 28 00 03 01 ca | 02 79 aa 9d 3b 41 00 00 |.y.(....|.y..;A..|
|000018c0| 0d b6 00 00 0d b6 00 00 | 0d b6 01 00 00 00 01 00 |........|........|
|000018d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 dd c7 d8 |...L...L|...2....|
|000018e0| 0c 20 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |. .....2|..MPSR..|
|000018f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 e1 92 9c 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+